import * as pages from "@/pages";
import { createWebHashHistory, createRouter } from "vue-router";
import HelloWorld from "./components/HelloWorld.vue";


const routes = [
  { path: '/', component: pages.HomePage, name: 'Home', children: [
    { path: '/hello', component: HelloWorld, name: 'HelloWorld'}
  ], redirect: 'hello'},
  { path: "/:pathMatch(.*)*", component: pages.NotFoundPage, name: "NotFound" },
];



export default createRouter({
  // can use createWebHistory()
  history: createWebHashHistory(),
  routes,
});
